/**
* <p>Title: EBoardPack.java</p>
* <p>Copyright: Copyright (c) 2016</p>
* <p>Company: lty</p>
*/
package com.lty.bbapp.entity;

/**
* <p>Title: EBoardPack</p>
* <p>Description: gps数据包实体类</p>
* <p>Company: lty</p>
* @author liuhao
* @date 2016年11月14日 上午10:19:55
* version 1.0
*/
public class EBoardPack {
	/*******************包头********************/
	private String headFlag;//标志头
	
	private String facInfo;//厂家信息
	
	private String version;//版本号
	
	private byte reservedHead;//预留
	
	private String equiId;//设备ID
	
	private byte commandFlag;//命令号
	
	private int bodyLength;//包体长度
	
	private byte headCheckSum;//包头校验和
	/*******************包体********************/
	private byte respFlag;//应答标志
	
	private String frameTime;//组帧时间
	
	private double latitude;//纬度
	private double longtitude;//经度
	
	private int velocity;//速度
	private int angle;//方位角
	private int reservedBody;//预留
	
	private int bodyCheckSum;//包体校验和
	
	private String endFlag;//结束符
	/**
	* <p>Title: </p>
	* <p>Description: </p>
	*/
	public EBoardPack() {
	}
	/**
	* <p>Title: </p>
	* <p>Description: </p>
	* @param headFlag
	* @param facInfo
	* @param version
	* @param reservedHead
	* @param equiId
	* @param commandFlag
	* @param bodyLength
	* @param headCheckSum
	* @param respFlag
	* @param frameTime
	* @param latitude
	* @param longtitude
	* @param velocity
	* @param angle
	* @param reservedBody
	* @param bodyCheckSum
	* @param endFlag
	*/
	public EBoardPack(String headFlag, String facInfo, String version, byte reservedHead, String equiId,
			byte commandFlag, int bodyLength, byte headCheckSum, byte respFlag, String frameTime, double latitude,
			double longtitude, int velocity, int angle, int reservedBody, int bodyCheckSum, String endFlag) {
		this.headFlag = headFlag;
		this.facInfo = facInfo;
		this.version = version;
		this.reservedHead = reservedHead;
		this.equiId = equiId;
		this.commandFlag = commandFlag;
		this.bodyLength = bodyLength;
		this.headCheckSum = headCheckSum;
		this.respFlag = respFlag;
		this.frameTime = frameTime;
		this.latitude = latitude;
		this.longtitude = longtitude;
		this.velocity = velocity;
		this.angle = angle;
		this.reservedBody = reservedBody;
		this.bodyCheckSum = bodyCheckSum;
		this.endFlag = endFlag;
	}
	public String getHeadFlag() {
		return headFlag;
	}
	public void setHeadFlag(String headFlag) {
		this.headFlag = headFlag;
	}
	public String getFacInfo() {
		return facInfo;
	}
	public void setFacInfo(String facInfo) {
		this.facInfo = facInfo;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public byte getReservedHead() {
		return reservedHead;
	}
	public void setReservedHead(byte reservedHead) {
		this.reservedHead = reservedHead;
	}
	public String getEquiId() {
		return equiId;
	}
	public void setEquiId(String equiId) {
		this.equiId = equiId;
	}
	public byte getCommandFlag() {
		return commandFlag;
	}
	public void setCommandFlag(byte commandFlag) {
		this.commandFlag = commandFlag;
	}
	public int getBodyLength() {
		return bodyLength;
	}
	public void setBodyLength(int bodyLength) {
		this.bodyLength = bodyLength;
	}
	public byte getHeadCheckSum() {
		return headCheckSum;
	}
	public void setHeadCheckSum(byte headCheckSum) {
		this.headCheckSum = headCheckSum;
	}
	public byte getRespFlag() {
		return respFlag;
	}
	public void setRespFlag(byte respFlag) {
		this.respFlag = respFlag;
	}
	public String getFrameTime() {
		return frameTime;
	}
	public void setFrameTime(String frameTime) {
		this.frameTime = frameTime;
	}
	public double getLatitude() {
		return latitude;
	}
	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}
	public double getLongtitude() {
		return longtitude;
	}
	public void setLongtitude(double longtitude) {
		this.longtitude = longtitude;
	}
	public int getVelocity() {
		return velocity;
	}
	public void setVelocity(int velocity) {
		this.velocity = velocity;
	}
	public int getAngle() {
		return angle;
	}
	public void setAngle(int angle) {
		this.angle = angle;
	}
	public int getReservedBody() {
		return reservedBody;
	}
	public void setReservedBody(int reservedBody) {
		this.reservedBody = reservedBody;
	}
	public int getBodyCheckSum() {
		return bodyCheckSum;
	}
	public void setBodyCheckSum(int bodyCheckSum) {
		this.bodyCheckSum = bodyCheckSum;
	}
	public String getEndFlag() {
		return endFlag;
	}
	public void setEndFlag(String endFlag) {
		this.endFlag = endFlag;
	}
	
	@Override
	public String toString() {
		return "EBoardPack [headFlag=" + headFlag + ", facInfo=" + facInfo + ", version=" + version + ", reservedHead="
				+ reservedHead + ", equiId=" + equiId + ", commandFlag=" + commandFlag + ", bodyLength=" + bodyLength
				+ ", headCheckSum=" + headCheckSum + ", respFlag=" + respFlag + ", frameTime=" + frameTime
				+ ", latitude=" + latitude + ", longtitude=" + longtitude + ", velocity=" + velocity + ", angle="
				+ angle + ", reservedBody=" + reservedBody + ", bodyCheckSum=" + bodyCheckSum + ", endFlag=" + endFlag
				+ "]";
	}
	
}
